package me.magicall.poker;

import me.magicall.tagInterfaces.HasNameGetter;

/**
 * 扑克牌的花色
 * 
 * @author MaGiCalL
 */
public enum Suit implements HasNameGetter {

	/**
	 * 黑桃
	 */
	SPADES(Color.BLACK, "♠", (char) 3),
	/**
	 * 红桃
	 */
	HEARTS(Color.RED, "❤", (char) 4),
	/**
	 * 梅花
	 */
	CLUBS(Color.BLACK, "♧", (char) 5),
	/**
	 * 方块
	 */
	DIAMONDS(Color.RED, "♢", (char) 6),
	/**
	 * 大小王
	 */
	JOKERS(Color.NONE, "JOKER", null);
	;

	public final Color color;
	public final String sign;
	public final Character ascii;

	private Suit(final Color color, final String sign, final Character ascii) {
		this.color = color;
		this.sign = sign;
		this.ascii = ascii;
	}

	public Color getColor() {
		return color;
	}

	@Override
	public String getName() {
		return name();
	}

	public String getSign() {
		return sign;
	}
}
